/**
 * Created by zzy on 2017/10/30.
 */
import React, {Component} from 'react';
import {
    Text,
    View,
    TouchableOpacity,
    Image,
    Dimensions,
    Linking
} from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons'
import Contant from '../../js/Contant'
let {width, height} = Dimensions.get('window');

export default class About extends Component{
    static navigationOptions = {
        header: ()=>{
            return  null
        }
    };
    render(){
        return <View style={{backgroundColor:'#f5f5f5',flex:1}}>
            <View style={{flexDirection:'row',alignItems:'center',justifyContent:'space-between',backgroundColor: 'white'}}>
                <TouchableOpacity activeOpacity={1}
                                  onPress={()=>{
                                      this.props.navigation.goBack()
                                  }}>
                    <Ionicons name="ios-arrow-back" size={30} style={{padding:10}}/>
                </TouchableOpacity>
                <Text style={{fontSize:17}}>关于汇贝</Text>
                <Text style={{padding:10}}>  </Text>
            </View>
            <View style={{justifyContent:'center',alignItems:'center',marginTop:70}}>
               <Image style={{width:70,height:70}} source={require('../../luoasserts/huibei_icon.png')}></Image>
               <Text style={{marginTop:5}}>汇贝</Text>
            </View>
            <View style={{borderColor:'gray',borderWidth:1,margin:10,marginTop:20,alignItems:'center',justifyContent:'center'}}>
               <Text style={{padding:10}}>
                   汇贝是全国最大的桶装水调度O2O平台，是专业的以水为主营业务的垂直电商产品，汇聚各大品牌的桶装水，商品自主选购、价格透明，我们的使命是打造最后一公里的一站式调度配送服务平台！
                   一站式调度，一站式配送，线上订购付款，线下完成配送服务。
               </Text>
            </View>
            <View style={{marginTop:30,justifyContent:'center',alignItems:'center'}}>
                <Text>客服电话:
                    <Text style={{color:'#00ABEF'}} onPress={()=>{Linking.openURL('tel:'+Contant.SERVICEPHONE)}}>400-061-3229</Text>
                </Text>
            </View>
            <View style={{position:'absolute',bottom:10,justifyContent:'center',alignItems:'center',width:width}}>
                <Text>copyright@2012-2017</Text>
                <Text>北京汇银丰网络技术有限公司</Text>
            </View>
        </View>
    }
}